themingbackground: Get rid of flags variable
authorBenjamin Otte <otte@redhat.com>
Fri, 26 Oct 2012 23:55:41 +0000 (01:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 31 Oct 2012 10:09:11 +0000 (11:09 +0100)
gtk/gtkthemingbackground.c
gtk/gtkthemingbackgroundprivate.h

index 4cdb39152745238e370df1830391dde95869ad1b..55df2dc2309366d8560a9997c6439a49b8514329 100644 (file)
@@ -336,11 +336,11 @@ _gtk_theming_background_init_layer (GtkThemingBackground *bg,
 static void
 _gtk_theming_background_init_context (GtkThemingBackground *bg)
 {
-  bg->flags = gtk_style_context_get_state (bg->context);
+  GtkStateFlags flags = gtk_style_context_get_state (bg->context);
 
-  gtk_style_context_get_border (bg->context, bg->flags, &bg->border);
-  gtk_style_context_get_padding (bg->context, bg->flags, &bg->padding);
-  gtk_style_context_get_background_color (bg->context, bg->flags, &bg->bg_color);
+  gtk_style_context_get_border (bg->context, flags, &bg->border);
+  gtk_style_context_get_padding (bg->context, flags, &bg->padding);
+  gtk_style_context_get_background_color (bg->context, flags, &bg->bg_color);
 
   /* In the CSS box model, by default the background positioning area is
    * the padding-box, i.e. all the border-box minus the borders themselves,
index bb652867c2721e5f69bcc8ec9ed5f1a5132f13e0..e6ed1df76cf9db80179019c632a8dfc864eb87b3 100644 (file)
@@ -39,7 +39,6 @@ struct _GtkThemingBackground {
   GtkRoundedBox padding_box;
 
   GtkJunctionSides junction;
-  GtkStateFlags flags;
   GtkBorder border;
   GtkBorder padding;
   GdkRGBA bg_color;